<?php
namespace app\admin\validate;
use think\Validate;
class Collection extends Validate{
	protected $rule=[
		['amount',"require|number","金额必须填写|金额必须是数字"],
		['deadline',"require|date","日期必须填写|日期格式不对"],
	];

	protected $scene=[
		'add'=>['amount','deadline'],
	];
}